Skip to content

Comments

fix: add explicit bash entrypoint to resolve exec format error on App…#13117

Open
ahmadintisar wants to merge 1 commit intoinfiniflow:mainfrom
Attili-sys:fix/macos-docker-compose-entrypoint
Open

fix: add explicit bash entrypoint to resolve exec format error on App…#13117
ahmadintisar wants to merge 1 commit intoinfiniflow:mainfrom
Attili-sys:fix/macos-docker-compose-entrypoint

Conversation

@ahmadintisar
Copy link
Contributor

### What problem does this PR solve?
On Apple Silicon Macs (M1/M2/M3/M4), the RAGFlow container built via docker-compose-macos.yml fails to start with exec format error on the entrypoint, causing an infinite restart loop (exit code 255). This happens because Docker's exec form tries to run entrypoint.sh directly as a binary, and the amd64 /usr/bin/env binary fails under Rosetta emulation even when Rosetta is enabled in Docker Desktop.
Adding an explicit /bin/bash entrypoint bypasses the shebang resolution issue and allows the container to start and run correctly.

Type of change

Bug Fix (non-breaking change which fixes an issue)

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant